﻿namespace YWM.Communication
{
    /// <summary>
    /// 功能码
    /// </summary>
    public enum ModBusFunction
    {
        /// <summary>
        /// 读输出线圈
        /// </summary>
        Read01 = 0x01,
        /// <summary>
        /// 读输入线圈
        /// </summary>
        Read02,
        /// <summary>
        /// 读输出寄存器
        /// </summary>
        Read03,
        /// <summary>
        /// 读输入寄存器
        /// </summary>
        Read04,
        /// <summary>
        /// 写单个线圈
        /// </summary>
        Wirte05,
        /// <summary>
        /// 写单个寄存器
        /// </summary>
        Wirte06,
        /// <summary>
        /// 写多个线圈
        /// </summary>
        Wirte0F = 0x0F,
        /// <summary>
        /// 写多个寄存器
        /// </summary>
        Wirte10
    }
}
